package com.wander.patterns.act.chainOfResponsibility;

import lombok.Data;

/**
 * @description:
 * @author: zhuyong
 * @create: 2019-09-07 16:43
 **/
@Data
public abstract class Leader {
    protected String name;
    protected Leader nextLeader;

    public Leader(String name) {
        this.name = name;
    }
    /**
     * 处理 请假请求
     * @param request
     */
    abstract void handlerRequest(LeaveRequest request);



}
